class ActListModel {
  String? msg;
  int? code;
  Data? data;

  ActListModel({this.msg, this.code, this.data});

  ActListModel.fromJson(Map json) {
    msg = json['msg'];
    code = json['code'];
    data = json['data'] != null ? Data.fromJson(json['data']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = {};
    data['msg'] = msg;
    data['code'] = code;
    if (this.data != null) {
      data['data'] = this.data!.toJson();
    }
    return data;
  }
}

class Data {
  List? todayGrandCeremony;
  List? futurePopular;
  List? previousReview;

  Data({this.todayGrandCeremony, this.futurePopular, this.previousReview});

  Data.fromJson(Map<String, dynamic> json) {
    todayGrandCeremony = json['todayGrandCeremony'];
    if (json['todayGrandCeremony'] != null) {
      todayGrandCeremony = <FuturePopular>[];
      json['todayGrandCeremony'].forEach((v) {
        todayGrandCeremony!.add(FuturePopular.fromJson(v));
      });
    }
    if (json['futurePopular'] != null) {
      futurePopular = <FuturePopular>[];
      json['futurePopular'].forEach((v) {
        futurePopular!.add(FuturePopular.fromJson(v));
      });
    }
    if (json['previousReview'] != null) {
      previousReview = <FuturePopular>[];
      json['previousReview'].forEach((v) {
        previousReview!.add(FuturePopular.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = {};
    data['todayGrandCeremony'] = todayGrandCeremony;
    if (futurePopular != null) {
      data['futurePopular'] = futurePopular!.map((v) => v.toJson()).toList();
    }
    if (previousReview != null) {
      data['previousReview'] = previousReview!.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class FuturePopular {
  String? activityId;
  String? actiCover;
  String? actiTitle;
  String? actiTime;
  String? actiArea;
  String? actiCost;
  String? easename; //环信名字
  int? sign; //--活动状态  1-可报名; 0-已开始; -1-已结束; 2-已报名
  String? actiCreateTIme;
  int isPost = 0; // -- 0-不是我发布的; 1-是我发布的
  int isMatchmaker = 0; //--是否是红娘  0-不是  1-是
  String? actiProvince;
  String? actiCity;
  String? actiAddr;
  String startTime = '';
  String endTime = '';
  String actiDescribe = '';

  FuturePopular(
      {this.activityId,
      this.actiCover,
      this.actiTitle,
      this.actiTime,
      this.actiArea,
      this.actiCost,
      this.sign,
      this.actiCreateTIme,
      this.isPost = 0,
      this.isMatchmaker = 0,
      this.easename,
      this.actiProvince,
      this.actiCity,
      this.actiAddr,
      this.startTime = '',
      this.endTime = '',
      this.actiDescribe = ''});

  FuturePopular.fromJson(Map<String, dynamic> json) {
    activityId = json['activityId'];
    actiCover = json['actiCover'];
    actiTitle = json['actiTitle'];
    actiTime = json['actiTime'];
    actiArea = json['actiArea'];
    actiCost = json['actiCost'] == '0' ? '免费' : '现场交费';
    sign = json['sign'];
    actiCreateTIme = json['actiCreateTIme'];
    isPost = json['isPost'] ?? 0;
    isMatchmaker = json['isMatchmaker'] ?? 0;
    easename = json['easename'];
    actiProvince = json['actiProvince'];
    actiCity = json['actiCity'];
    actiAddr = json['actiAddr'];
    startTime = json['startTime'] ?? '';
    endTime = json['endTime'] ?? '';
    actiDescribe = json['actiDescribe'] ?? '';
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['activityId'] = activityId;
    data['actiCover'] = actiCover;
    data['actiTitle'] = actiTitle;
    data['actiTime'] = actiTime;
    data['actiArea'] = actiArea;
    data['actiCost'] = actiCost;
    data['sign'] = sign;
    return data;
  }
}
